#include "stdafx.h"
#include "utils.h"

int RectWidth(RECT trec)
{
	int rWidth = 0;
	rWidth = trec.right - trec.left;
	return rWidth;
}

int RectHeight(RECT trec)
{
	int rHeight = 0;
	rHeight = trec.bottom - trec.top;
	return rHeight;
}

void VsOutput(LPCTSTR szFormat, ...)
{
	TCHAR szBuff[1024];
	va_list arg;
	va_start(arg, szFormat);
	_vsntprintf(szBuff, _countof(szBuff), szFormat, arg);
	va_end(arg);

	OutputDebugString(szBuff);
}